#include "ConfigPlugin.h"
#include "ConfigModule.h"

#ifdef FG_DYNAMIC_PLUGIN

FG_EXPORT void DllStartPlugin(IPluginManager* pm)
{

    CREATE_PLUGIN(pm, ConfigPlugin)

};

FG_EXPORT void DllStopPlugin(IPluginManager* pm)
{
    DESTROY_PLUGIN(pm, ConfigPlugin)
};

#endif

const int FragrantGrass::ConfigPlugin::GetPluginVersion()
{
    return 0;
}

const std::string FragrantGrass::ConfigPlugin::GetPluginName()
{
	return GET_CLASS_NAME(ConfigPlugin);
}

void FragrantGrass::ConfigPlugin::Install()
{
    REGISTER_MODULE(m_pPluginManager, IConfigModule, ConfigModule)
}

void FragrantGrass::ConfigPlugin::Uninstall()
{
    UNREGISTER_MODULE(m_pPluginManager, IConfigModule, ConfigModule)
}